package com.ruoyi.business.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * Content对象 business_content
 *
 * @author win
 * @date 2021-06-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Content extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortOrder;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long belong;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long departId;

    private String belongName;

    private String departName;

    /** 所属栏目id */
    @Excel(name = "所属栏目id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long categoryId;

    /** 内容位置 */
    @Excel(name = "内容位置")
    private Integer position;

    /** 类型 1text 2pdf 3video */
    @Excel(name = "类型 1text 2pdf 3video")
    private Integer type;

    /** 状态 0审核未通过或禁用 1审核通过 2未审核 */
    @Excel(name = "状态 0审核未通过或禁用 1审核通过 2未审核")
    private Integer status;

    @Excel(name = "父级栏目名称")
    private String categoryName;

    private Integer count;

    private String description;

}
